@loganz2

Credited work in P vs NP in Lean

loganz2 on GitHub

Points
179
Credited units
72
Last credit
November 28, 2026

See their profile

Credited units

  1. m3_y_resolvent_add_sat

    Adding to N the resolvent of two of its clauses keeps satisfiability (vendored model)

    Credited November 28, 2026 at 04:09 UTC

    Record commit ade43361752b

    1 point

  2. m3_y_resolvent_double_clash

    Resolving two clauses that clash on two variables gives a clause true under every assignment (vendored model)

    Credited November 28, 2026 at 04:07 UTC

    Record commit 1c9d708af302

    1 point

  3. m3_y_horn_flip_dual_horn

    Flipping every literal of a Horn CNF gives a dual-Horn CNF (vendored model)

    Credited November 28, 2026 at 04:04 UTC

    Record commit 1daa8624e5d3

    1 point

  4. m2_tm_y_inversions_unary

    The number of inversions of a string, in unary, takes polynomial time (TM2)

    Credited November 27, 2026 at 23:34 UTC

    Record commit 10bacf7eaae6

    3 points

  5. m2_tm_y_pairs_combine

    Combining each disjoint pair of adjacent bits by a fixed Boolean function takes polynomial time (TM2)

    Credited November 27, 2026 at 23:33 UTC

    Record commit ca6fe6141667

    2 points

  6. m2_tm_y_subsequence_test

    Testing whether one string is a subsequence of another takes polynomial time (TM2)

    Credited November 27, 2026 at 23:33 UTC

    Record commit 47b4cfc618bc

    3 points

  7. m2_tm_y_prefix_counts_list

    Writing the running counts of trues of a string, each in unary, takes polynomial time (TM2)

    Credited November 27, 2026 at 23:33 UTC

    Record commit 0fd31366458a

    2 points

  8. m3_y_sat_of_substitute

    If substituting a literal m for a variable x in N gives a satisfiable CNF, N is satisfiable (vendored model)

    Credited November 27, 2026 at 23:33 UTC

    Record commit 2c2d346a9276

    2 points

  9. m2_tm_y_even_odd_positions

    Keeping the bits at even positions, and those at odd positions, takes polynomial time (TM2)

    Credited November 27, 2026 at 23:32 UTC

    Record commit 57f68bca9083

    2 points

  10. m3_y_resolution_derivation_sound

    A resolution derivation from N whose list of clauses holds the empty clause shows N unsatisfiable (vendored model)

    Credited November 27, 2026 at 23:25 UTC

    Record commit a8a3db43c667

    2 points

  11. m3_y_pad_clause_all_signs

    A clause C padded with every sign pattern over a list of variables zs is equivalent to C (vendored model)

    Credited November 27, 2026 at 23:25 UTC

    Record commit 0db4997c069c

    2 points

  12. m3_y_models_count_incl_excl

    #(N₁ ∨ N₂) + #(N₁ ∧ N₂) = #N₁ + #N₂ for model counts over the variables below n, the disjunction by distribution (vendored model)

    Credited November 27, 2026 at 23:24 UTC

    Record commit fdfab10057a4

    2 points

  13. m3_y_grid_two_coloring_sat

    The 2-colouring clauses of the (m+1)×(n+1) grid graph are satisfiable: grids are bipartite (vendored model)

    Credited November 27, 2026 at 23:23 UTC

    Record commit a57fa68fe651

    2 points

  14. m3_y_xor_path_models_count

    Over the variables 0, …, n the inequality path x₀ ≠ x₁ ≠ … ≠ x_n has exactly two models (vendored model)

    Credited November 27, 2026 at 23:22 UTC

    Record commit 3a7246abbcea

    3 points

  15. m3_y_models_count_extra_var

    Counting over one more variable than a CNF uses doubles its model count (vendored model)

    Credited November 27, 2026 at 23:22 UTC

    Record commit 9f992691ce88

    2 points

  16. m3_y_implication_cycle_equal

    The implication cycle x_i → x_((i+1) mod n) for i < n holds exactly when x₀, …, x_(n−1) all equal x₀ (vendored model)

    Credited November 27, 2026 at 23:21 UTC

    Record commit 5e7d57c0a9c4

    2 points

  17. m3_y_cycle_three_coloring_sat

    The 3-colouring clauses of the cycle on n ≥ 2 vertices are satisfiable (vendored model)

    Credited November 27, 2026 at 23:21 UTC

    Record commit f1eea2fcdfa4

    2 points

  18. m3_y_xor_path_endpoints_sat

    The inequality path x₀ ≠ x₁ ≠ … ≠ x_n with x₀ and x_n both true is satisfiable exactly when n is even (vendored model)

    Credited November 27, 2026 at 23:20 UTC

    Record commit c69dd216c929

    2 points

  19. m3_y_grid_monotone_unsat

    On the (m+1)×(n+1) grid, implications down and right from a true corner to a false opposite corner are unsatisfiable (vendored model)

    Credited November 27, 2026 at 23:20 UTC

    Record commit e677cffd3482

    2 points

  20. m3_y_xor_path_alternating

    The path of constraints x_i ≠ x_(i+1) for i < n holds exactly when x_i = x₀ for even i ≤ n and x_i ≠ x₀ for odd i (vendored model)

    Credited November 27, 2026 at 23:19 UTC

    Record commit 3537043a4049

    2 points

  21. m3_y_eval_rename

    A renamed CNF under a takes the value of the CNF under the variables whose image is in a (vendored model)

    Credited November 27, 2026 at 23:19 UTC

    Record commit 1983e8f726db

    2 points

  22. m3_y_implication_chain_models_count

    Over the variables 0, …, n the chain x_i → x_(i+1) for i < n has exactly n + 2 models (vendored model)

    Credited November 27, 2026 at 23:19 UTC

    Record commit 6457d8a30539

    3 points

  23. m2_z_padded_conp

    Padding to length |x|^k keeps a coNP language in coNP (TM2)

    Credited November 27, 2026 at 23:16 UTC

    Record commit f0038f32ba3b

    2 points

  24. m3_y_clause_chain_split

    A clause l₀ ∨ … ∨ l_(m−1) beside N is equisatisfiable with a 3-CNF chain over fresh variables y₀, …, y_m (vendored model)

    Credited November 27, 2026 at 23:15 UTC

    Record commit 3b3df51cf519

    3 points

  25. m2_z_exp_range_inter

    Exponential time is closed under the intersection of a family indexed below a bound (TM2)

    Credited November 27, 2026 at 23:13 UTC

    Record commit 458224e21a7d

    2 points

  26. tl_lang_val_pow_p

    The strings whose binary value is k ^ 2 for some k are in P (TM2)

    Credited November 27, 2026 at 10:11 UTC

    Record commit d072fc37d868

    4 points

  27. tr_rel_power_of

    Whether one string is a power of another is decidable in polynomial time (TM2)

    Credited November 27, 2026 at 09:39 UTC

    Record commit a914b4f35b87

    3 points

  28. tc_exp_ins_one

    Exponential time is closed under inserting one bit (TM2)

    Credited November 27, 2026 at 05:33 UTC

    Record commit 0b6c84fe6a72

    3 points

  29. tc_exp_flip_one

    Exponential time is closed under flipping one bit (TM2)

    Credited November 27, 2026 at 05:32 UTC

    Record commit e11dc0e289af

    3 points

  30. tl_lang_square_factor_np

    The strings whose binary value has a square factor are in NP (TM2)

    Credited November 27, 2026 at 05:29 UTC

    Record commit 3d9852b7ad98

    4 points

  31. tc_exp_suffix_ext

    Exponential time is closed under short left extensions (TM2)

    Credited November 27, 2026 at 05:27 UTC

    Record commit e405a952f07f

    4 points

  32. tc_exp_half

    Exponential time is closed under taking first halves (TM2)

    Credited November 27, 2026 at 05:21 UTC

    Record commit 48218bf17502

    4 points

  33. tc_exp_prefix_ext

    Exponential time is closed under short extensions (TM2)

    Credited November 27, 2026 at 05:21 UTC

    Record commit 1fc15d2fd0d3

    4 points

  34. tc_exp_concat

    Exponential time is closed under concatenation (TM2)

    Credited November 27, 2026 at 05:21 UTC

    Record commit ba8f534da51a

    4 points

  35. tc_exp_length_proj

    Exponential time is closed under taking the lengths of its strings (TM2)

    Credited November 27, 2026 at 05:19 UTC

    Record commit 9bb7f66aded0

    4 points

  36. tr_rel_val_dvd

    Whether one binary numeral divides another is decidable in polynomial time (TM2)

    Credited November 27, 2026 at 05:18 UTC

    Record commit 7d4f8a92f6bd

    5 points

  37. m2_tm_infix_polytime

    Testing whether one string occurs inside another takes polynomial time (TM2)

    Credited November 27, 2026 at 04:41 UTC

    Record commit 2b03e3b09835

    2 points

  38. m2_p_eq_np_search

    If P = NP, certificates can be found in polynomial time (search reduces to decision, TM2)

    Credited November 27, 2026 at 04:38 UTC

    Record commit e656413da5d7

    3 points

  39. m2_nexp_padded_np

    Upward translation: an exponential padding of a NEXP language is in NP (TM2)

    Credited November 27, 2026 at 04:37 UTC

    Record commit 553f3dfdae3e

    2 points

  40. m2_padded_np_nexp

    Downward translation: if an exponential padding of L is in NP, then L is in NEXP (TM2)

    Credited November 27, 2026 at 04:33 UTC

    Record commit 66cef956266e

    3 points

  41. m2_exp_subset_nexp

    Every exponential-time language has an exponential-certificate verifier (EXP ⊆ NEXP, TM2)

    Credited November 27, 2026 at 04:28 UTC

    Record commit ce8ba1822938

    2 points

  42. m3_sat_to_monotone_sat

    SAT reduces to monotone SAT: each negative literal becomes a positive variable forced to its opposite (vendored model)

    Credited November 27, 2026 at 04:23 UTC

    Record commit 525bffbbafa2

    2 points

  43. m3_naesat_fresh_var

    Adding one fresh variable to every clause turns satisfiability into not-all-equal satisfiability (vendored model)

    Credited November 27, 2026 at 04:23 UTC

    Record commit 63a81a5f34b8

    2 points

  44. m3_horn_least_model

    A satisfiable Horn formula has a least model (vendored model)

    Credited November 27, 2026 at 04:21 UTC

    Record commit 8460b5123870

    2 points

  45. tf_fun_pair_add

    Adding two binary numerals takes polynomial time (TM2)

    Credited November 27, 2026 at 03:22 UTC

    Record commit bc7164f911d3

    3 points

  46. m2_exp_poly_exponent

    Exponential time with any polynomial in the exponent (TM2)

    Credited November 27, 2026 at 03:07 UTC

    Record commit 22b36fdd0a8a

    2 points

  47. m2_karp_finite_patch

    A finite change of a language keeps its reductions to a nontrivial target (TM2)

    Credited November 27, 2026 at 03:07 UTC

    Record commit 99ff7e149c73

    2 points

  48. m2_np_all_prefixes

    NP is closed under "every prefix is in L" (TM2)

    Credited November 27, 2026 at 03:07 UTC

    Record commit 6f69c747768e

    3 points

  49. m3_self_subsuming

    Self-subsuming resolution strengthens a clause without changing satisfiability (vendored model)

    Credited November 27, 2026 at 02:53 UTC

    Record commit fde71930082f

    1 point

  50. m3_twocnf_majority

    The satisfying assignments of a 2-CNF are closed under majority (vendored model)

    Credited November 27, 2026 at 02:52 UTC

    Record commit 571c361bed78

    2 points

  51. m3_sat_sublists_search

    A satisfiable CNF is satisfied by a sublist of its own variable list (vendored model)

    Credited November 27, 2026 at 02:52 UTC

    Record commit a6348f0e2e88

    1 point

  52. m3_satstr_constant

    A constant bit string is in SATStr only when it is empty (vendored model)

    Credited November 27, 2026 at 02:52 UTC

    Record commit 9eee65c05937

    1 point

  53. tc_closure_hom_np

    NP is closed under nonerasing homomorphism (TM2)

    Credited November 27, 2026 at 02:37 UTC

    Record commit d88f7cbe0190

    3 points

  54. tc_closure_rotate_conp

    coNP is closed under cyclic shift (TM2)

    Credited November 27, 2026 at 02:35 UTC

    Record commit 9e3f7a7ea69d

    3 points

  55. tc_closure_rotate_p

    P is closed under cyclic shift (TM2)

    Credited November 27, 2026 at 02:35 UTC

    Record commit eed075632ae3

    3 points

  56. m2_p_eq_np_nexp_exp

    If P = NP then NEXP = EXP: every NEXP language is decided in exponential time (TM2)

    Credited November 27, 2026 at 02:09 UTC

    Record commit 4a954f3aac4d

    3 points

  57. m2_np_honest_image

    NP is closed under images by honest polynomial-time maps (TM2)

    Credited November 27, 2026 at 02:04 UTC

    Record commit 6db9da4beeac

    3 points

  58. m2_p_reduces_nontrivial

    Every language in P reduces to every nontrivial language (TM2)

    Credited November 27, 2026 at 01:46 UTC

    Record commit 5f076a3bac5c

    1 point

  59. m2_p_time_hierarchy

    For every k, some language in P is not decided within n^k + k steps (TM2)

    Credited November 27, 2026 at 01:38 UTC

    Record commit 9298bbf55730

    2 points

  60. m3_sat_rename

    Renaming variables injectively preserves satisfiability (vendored model)

    Credited November 27, 2026 at 01:04 UTC

    Record commit 0a5938f90a65

    2 points

  61. m3_unit_propagation

    Unit propagation preserves satisfiability (vendored model)

    Credited November 27, 2026 at 01:04 UTC

    Record commit bb1e03f3df69

    2 points

  62. m3_subsumption

    A clause subsumed by another can be dropped (vendored model)

    Credited November 27, 2026 at 01:03 UTC

    Record commit bff19b50a480

    1 point

  63. m3_positive_clause_sat

    A CNF whose every clause has a positive literal is satisfiable (vendored model)

    Credited November 26, 2026 at 21:56 UTC

    Record commit 1a7e0b56d81f

    1 point

  64. m3_resolution_sound

    The resolution rule is sound (vendored model)

    Credited November 26, 2026 at 21:55 UTC

    Record commit 198157627bd4

    1 point

  65. m2_tm2_output_unique

    A TM2 machine has at most one output on each input

    Credited November 26, 2026 at 19:17 UTC

    Record commit c12542eda61c

    1 point

  66. m2_p_union

    P is closed under union (TM2)

    Credited November 26, 2026 at 18:53 UTC

    Record commit e0139d804f0d

    1 point

  67. m2_npc_transfer

    NP-completeness transfers along a reduction into NP (TM2)

    Credited November 26, 2026 at 18:44 UTC

    Record commit 4e595ae1cdb1

    1 point

  68. m1_tm2_to_st

    Bridge: a polynomial-time TM2 machine has a polynomial-time single-tape equivalent

    Credited November 26, 2026 at 06:20 UTC

    Record commit 576d9a0cde81

    8 points

  69. m1_st_np_to_flat_np

    Bridge: a language in the single-tape NP is in the vendored NP

    Credited November 26, 2026 at 05:44 UTC

    Record commit dfa1235fe229

    6 points

  70. m3_sat_to_naesat

    SAT reduces to not-all-equal SAT (vendored model)

    Credited November 26, 2026 at 05:03 UTC

    Record commit 9ba5c9a399d3

    5 points

  71. fr_lang_not_in_p

    Frontier: some language over Bool is not in P (TM2)

    Credited November 26, 2026 at 04:43 UTC

    Record commit 4bb95665b6ce

    2 points

  72. m3_sat_to_doublesat

    SAT reduces to DOUBLE-SAT (vendored model)

    Credited November 26, 2026 at 04:39 UTC

    Record commit 93c2f5161f2e

    3 points