blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c4c9b3aded57ef9e69a5d53373173cb88681485 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/apply_fun.lean | 1197f2349b4a4da2e6751048f8e22cb937a72e20 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,389 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.monotonicity.default
import Mathlib.PostPort
namespace Mathlib
namesp... |
86c0d32ffe2f57d489b7bccaaf40695b71bab464 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/fin.lean | 7abcc3aaebb220899539c5f9f3014615cc396cf0 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 2,855 | lean | import data.nat.basic
open fin nat
namespace fin
variable {n : ℕ}
/-- Embedding of `fin n` in `fin (n+1)` -/
def raise (k : fin n) : fin (n + 1) := ⟨val k, lt_succ_of_lt (is_lt k)⟩
def add_nat {n} (i : fin n) (k) : fin (n + k) :=
⟨i.1 + k, nat.add_lt_add_right i.2 _⟩
@[simp] lemma succ_val (j : fin n) : j.succ.va... |
686d918d5849e403dd69decf394a94add4ce79a6 | 4ad6af7525e674c3cdc623c1495472954f3ce34c | /src/solutions.lean | 8d9a84191ccd18081239f3472ad6ac952cf50104 | [] | no_license | alcides/lean3_tutorial | 4bf48026f7cfa5ae80e9a75f46ca23364d455810 | 7a871e00c4fd5cb000929a59e1bd804a626ef277 | refs/heads/master | 1,663,719,613,974 | 1,591,141,389,000 | 1,591,141,389,000 | 268,600,781 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 928 | lean |
/-
01_first.lean
-/
theorem my_second_theorem :
∀ p q : Prop, p → q → p
:=
begin
intros p q proof_of_p proof_of_q,
exact proof_of_p,
end
/-
03_haskell.lean
theorem map_id_is_the_same (a:Type) (xs:L a) :
map id xs = xs :=
begin
induction xs,
{
rw map,
},
{
rw m... |
108caefdf0c384cb9500d840cfdc15f342ee7af8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/p_group.lean | 4e3626f288d6509cfa382ef4f2ef5874d1ce1cee | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 12,021 | lean | /-
Copyright (c) 2018 . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import data.zmod.basic
import group_theory.index
import group_theory.group_action.conj_act
import group_theory.perm.cycle_type
import group_theory.quotient_group
/... |
9685c4d3cc0accdc4e01dfae28f81ecfd968b644 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/finish.lean | 53335be076da79db2bfa73d393c62801dc357099 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 22,245 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jesse Michael Han
-/
import logic.basic tactic.core tactic.hint
/-!
# The `finish` family of tactics
These tactics do straightforward things: they call the simplifier,... |
c0e12e03fa6d30fb64a2b5c9c1429fbed13b0c67 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/smt/arith_auto.lean | 5552e2a0f43264df737ee7e7dd710861c9b1c001 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 459 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
namespace Mathlib
axiom real
instance real.has_zero : HasZero real
instance real.has_one : HasOne real
instance real.has_add : Add real
instance real.has_mul : Mul real
instance real.has_sub : Sub real
instance real.has_neg : Neg real
instance real.ha... |
3e67e10fbd2aa5d0982db057b6831d56f586843a | 6dbfa3fb323bb2e2c3917c61d46053dd0de739cd | /src/CRT_isomorphism.lean | 0a1c82a01dc3f0fa07b4568fad635251918f786c | [] | no_license | amichaelsen/Lean-Chinese-Remainder-Theorem | b054fc32e0f5383eb83ec7155932c50d92de1038 | 9efb4b97da30e5aedb6af3c95d5132ac300f2902 | refs/heads/master | 1,680,787,277,127 | 1,619,155,524,000 | 1,619,155,524,000 | 275,883,966 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,341 | lean | import CRT2 CRT lemmas2 defs_lemmas
import data.nat.basic
import data.nat.modeq
import data.nat.gcd
import data.zmod.basic
import tactic
import algebra.euclidean_domain
import data.int.basic
import data.equiv.ring
noncomputable theory
open nat nat.modeq zmod CRT2 CRT lemmas2 defs_lemmas
-------------------------ISOMO... |
00e3a3dd4438662989b29bb133c78b9c9c0d2323 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/probability/martingale.lean | 178c420e9db06ce79fc09def141ef40885f3e797 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 27,443 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Kexing Ying
-/
import probability.notation
import probability.hitting_time
/-!
# Martingales
A family of functions `f : ι → α → E` is a martingale with respect to a filtr... |
a452459179aa980804f8c27bc8dd4ac8c6f7ffe4 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/logic/unique.lean | 4deace7215340195796dcaaad911dac6086185ed | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 1,649 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
universes u v w
variables {α : Sort u} {β : Sort v} {γ : Sort w}
structure unique (α : Sort u) extends inhabited α :=
(uniq : ∀ a:α, a = default)
attribute [class... |
53e2e552c0c2cd5b1a8b54e5c7ef5855d1074ca5 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/homotopy/sphere.hlean | cfa0807076c6f2fdb03f7dcd80d3b8656e16c314 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 11,362 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the n-spheres
-/
import .susp types.trunc
open eq nat susp bool is_trunc unit pointed algebra
/-
We can define spheres with the following possib... |
3056e3ea5cec737c375bcc9f4a3028e2ac1f4344 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/init/reserved_notation.hlean | 70de289940be81bce83a5a8aa46daa8faedd0159 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,312 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Floris van Doorn
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f, f) := r
stru... |
672e69b084d2b63bc020e72d6b6fe12b11959986 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/Delaborator.lean | 878e5b2b6ef5750a392e12ec13413ae37cc1a658 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,393 | lean | import Init.Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
def check (stx : TermElabM Syntax) (optionsPerPos : OptionsPerPos := {}) : TermElabM Unit := do
stx ← stx;
opts ← getOptions;
e ← elabTermAndSynthesize stx none <* throwErrorIfErrors;
stx' ← liftMetaM stx $ delab e opts optionsPerPos;
dbgTrace $ toString st... |
d2a7f0bd4db2c97a109886dd5265b802071b116f | d0c6b2ba2af981e9ab0a98f6e169262caad4b9b9 | /src/Init/Data/Stream.lean | 97c874b386b041b50ffde98c6410abcd2dfb1896 | [
"Apache-2.0"
] | permissive | fizruk/lean4 | 953b7dcd76e78c17a0743a2c1a918394ab64bbc0 | 545ed50f83c570f772ade4edbe7d38a078cbd761 | refs/heads/master | 1,677,655,987,815 | 1,612,393,885,000 | 1,612,393,885,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,738 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Andrew Kent, Leonardo de Moura
-/
prelude
import Init.Data.Array.Subarray
import Init.Data.Range
/-
Streams are used to implement parallel `for` statements... |
0a3b3f33b4c0038ad5a2b9b30353bf59bd34ce0a | c9b68131de1dfe4e7f0ea5749b11e67a774bc839 | /src/instruction.lean | f0e39dfb055c1831956781831700cd0f2424e291 | [] | no_license | congge666/formal-proofs | 2013f158f310abcfc07c156bb2a5113fb78f7831 | b5f6964d0220c8f89668357f2c08e44861128fe3 | refs/heads/master | 1,691,374,567,671 | 1,632,704,604,000 | 1,632,706,366,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,963 | lean | /-
Theorem 1 in Section 9.4 of the whitepaper, dealing with the encoding of an instruction as a field
element.
-/
import cpu constraints
open_locale big_operators
open_locale disable_subsingleton_simps
/-
Note: this is needed for the `classical.some`, but we can possibly remove it
based on the data from the range_che... |
8a0bff76915476b882955f26ec18b9050305e11b | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Elab/Tactic.lean | 1f15431c48d09b00ebc8338a4a80c31dacf64cad | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 592 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Elab.Term
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.ElabTerm
import Lean.Elab.Tactic.Induction
import Lean.Elab.T... |
1dc95adc4182b0dc7490b4c51a92e8a243f4f5f3 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/subst2.lean | 41023b907c9c9d1c5832e78acc73e5bc06c8189c | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 210 | lean | (* import("tactic.lua") *)
theorem T (A : Type) (p : A -> Bool) (f : A -> A -> A) : forall x y z, p (f x x) → x = y → x = z → p (f y z).
apply (subst (subst H H::1) H::2)
done.
print environment 1. |
0f3a1bf34e91cc7ce422ce8cfbb9be70fe743ccb | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/group_theory/submonoid/operations.lean | 9806279fb688ced9524d7b222bac8b18f7f930e9 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 19,849 | lean | import group_theory.submonoid.basic
import data.equiv.mul_add
import algebra.group.prod
import algebra.group.inj_surj
/-!
# Operations on `submonoid`s
In this file we define various operations on `submonoid`s and `monoid_hom`s.
## Main definitions
### Conversion between multiplicative and additive definitions
* `s... |
f301e39b444ffc40b4efd2fd47fb1d43ba929de6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/cancel_leads.lean | 2592e08f3b9ce9ab5345d4651c11fd7b7825cb9b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,797 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.polynomial.degree.definitions
import tactic.compute_degree
import data.polynomial.degree.lemmas
/-!
# Cancel the leading terms of two polynomials
## Defi... |
b7ca64b5d175509db6a1585fa113194fc0977531 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/lib_unused/utf8.lean | 22ed3780b5d0fb10064bf0daae44cb64d20e0303 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,331 | lean | -- import data.num.bitwise
-- import data.nat.cast
-- import .num
-- namespace utf8
-- def TAG_CONT := 0b10000000
-- def TAG_TWO_B := 0b11000000
-- def TAG_THREE_B := 0b11100000
-- def TAG_FOUR_B := 0b11110000
-- def MAX_ONE_B := 0x80
-- def MAX_TWO_B := 0x800
-- def MAX_THREE_B := 0x10000
-- open num
-- ... |
b1103ebcc50a3e1a8e78f03ae7ae4b77fdae4b52 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean | d2da63054b5ccd0f11b7a10616b91b1b661be9fe | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,460 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.PrettyPrinter.Delaborator.Basic
import Lean.Parser
namespace Lean.PrettyPrinter.Delaborator
open Lean.Meta
open Lean.Parser.Term
@[builtinDelab f... |
a04e46464f495172172c0dabc94d466b42d4ab43 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/meta_tac5.lean | 3c52e6814a334d021bd488ecb560dc5698300418 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 420 | lean | open tactic name list
set_option pp.goal.compact true
set_option pp.beta false
set_option pp.binder_types true
example : ∀ (A B : Prop), A → A ∧ B → A → A ∧ B :=
by do
intro_lst [`_, `_, `H1, `H2, `H3],
trace_state,
rename `H2 `H5,
trace_state,
r ← get_local_type `H5,
trace r,
trace "-----... |
498f993b36f0f0dc3448f4f12ade68020efd03d6 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/num_tst.lean | 3a90f1115ab5ff78776cac6f19db6a6e82d1a19b | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 865 | lean | import num tactic
using num
variable a : num
add_rewrite fact_zero fact_succ one_eq_succ_zero
(*
local t1 = parse_lean("num::add num::one (num::succ num::one)")
print(t1)
print("====>")
local t2, pr = simplify(t1)
print(t2)
print(get_environment():type_check(pr))
*)
print ""
(*
local t1 = parse_lean("num::mul (num:... |
dd5a76fb3889b7f4aaded436e13c5da6aca212cb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/box_integral/partition/tagged.lean | 50fdca2b032f7e38bc699b0add1589318a215ded | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 16,010 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.partition.basic
/-!
# Tagged partitions
A tagged (pre)partition is a (pre)partition `π` enriched with a tagged point for each box of
... |
4e499e589d114b81fcd78ee35f067a3e3267db96 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/homology/short_exact/abelian.lean | fed7735da548da20580e71010562836215d82ca1 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 4,039 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Andrew Yang, Pierre-Alexandre Bazin
-/
import algebra.homology.short_exact.preadditive
import category_theory.abelian.diagram_lemmas.four
/-!
# Short exact sequences i... |
4c67d156a176874fe7c09a71f2403f5148338b13 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/control/traversable/derive.lean | cf77fc50fec16caba90e90aeb6c373d900b884d1 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 17,058 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Automation to construct `traversable` instances
-/
import control.traversable.lemmas
import data.list.basic
namespace tactic.interactive
open tactic list monad functor
met... |
826f75143023c6b07840680472a418ff744d50bd | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/simpBug.lean | ee2ef0fe83c511d723bcc0abaf0c6324fab8c61c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 160 | lean | variable (u w x x' y y' z : Nat) (p : Nat → Prop)
example (h₁ : x + 0 = x') (h₂ : y + 0 = y')
: x + y + 0 = x' + y' := by
simp at *
simp [*]
|
5db5336e0f6e8577215825702897b4528b4ae5b4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/number_theory/bernoulli_polynomials.lean | b7c1cf441eb796f826f094356f9b910508fe1eb3 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 7,151 | lean | /-
Copyright (c) 2021 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import number_theory.bernoulli
/-!
# Bernoulli polynomials
The Bernoulli polynomials (defined here : https://en.wikipedia.org/wiki/Bernoulli_polynomials)
are a... |
6c1334e1d7ebaa7b1e5b9be11712b1901433d1ba | ec040be767d27b10d2f864ddcfdf756aeb7a9a0a | /src/inClassNotes/final/imp_test.lean | 712ba243c87a4034cbd725b346403a5ad6624fb4 | [] | no_license | RoboticPanda77/complogic-s21 | b26a9680dfb98ac650e40539296c0cafc86f5cb4 | 93c5bcc0139c0926cc261075f50a8b1ead6aa40c | refs/heads/master | 1,682,196,614,558 | 1,620,625,035,000 | 1,620,625,035,000 | 337,230,148 | 0 | 0 | null | 1,620,625,036,000 | 1,612,824,240,000 | Lean | UTF-8 | Lean | false | false | 1,936 | lean | import .assertion
import .imp
import .var_test
/-
Tests after completion of cmd syntax including if and while
-/
def p1 : cmd :=
IF (bool_expr.eq_expr [X] [0]) -- provide concrete syntax
THEN X = [1]
ELSE X = [2]
/-
Tests before completion of cmd syntax including if and while
-/
-- a little program: X gets overwri... |
2279fa3b661b9fc9e57845cf9371c4e71f5db3b8 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/field_theory/finite_card.lean | b3999be245abf3d10cdadf9b6cde7da052760800 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 1,115 | lean | /-
Copyright (c) 2019 Casper Putz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joey van Langen, Casper Putz
-/
import algebra.char_p data.zmod.basic linear_algebra.basis
universes u
variables (α : Type u) [discrete_field α] [fintype α]
namespace finite_field
the... |
a77ac09371c53a95e88a444850d2f28a9ba5e779 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/p_series.lean | 3698e6084e96d7faa5c4d780e6880c24e468cb4b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 12,495 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.special_functions.pow
/-!
# Convergence of `p`-series
In this file we prove that the series `∑' k in ℕ, 1 / k ^ p` converges if and only if ... |
fbed48fc9697ea75e517d2f4017c3b75ef7fcd72 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/order/zorn.lean | 4a3df214dad17a90139c3f9558d9304378f765f6 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 12,893 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice
noncomputable theory
univ... |
3d67043d49656363b7783edf6610d37a426cf38d | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/measure_theory/bochner_integration.lean | a8be0f103699bff89b0d7fbac0663a42ff9dbe7d | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 55,415 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
/-!
# Bochner integral
The Bochner integral extends the definition of the Le... |
2aa10b5a1a3cd254d21e1e665d688bcdef4a3b63 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/measure/measure_space.lean | 548a46c09e353e009fc56c791ac1491b5315f9bb | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 155,949 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.measure.null_measurable
import measure_theory.measurable_space
/-!
# Measure spaces
The definition of a measure and a measure ... |
a2f4c5a8a5e585dfd486c9f3a6f422f8d383cdab | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/linear_algebra/basis.lean | 72715795dc6c1e782d98408ad58784dc85c1ef80 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,757 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import data.fintype.card
import linear_algebra.finsupp
import linear_algebra.linear_independe... |
b7b99a61b078a858912b55373c5a814148109355 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/partition_of_unity.lean | 64cd831e553e0a4bdbb230371cde038ed508cb66 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 27,479 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import geometry.manifold.algebra.structures
import geometry.manifold.bump_function
import topology.metric_space.partition_of_unity
import topology.shrinking_l... |
068911d8b5f3128715fa2780ed4a67fe8a8bb078 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/inv_bug2.lean | 66ee2c97c5d33caf7ccad82485997003acb9c5b5 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 373 | lean | import data.examples.vector
open nat
namespace vector
variables {A : Type} {n : nat}
protected definition destruct2 (v : vector A (succ (succ n))) {P : Π {n : nat}, vector A (succ n) → Type}
(H : Π {n : nat} (h : A) (t : vector A n), P (h :: t)) : P v :=
begin
cases v with [n... |
7853a3369a6a1c9117a283e525944f1433ac94d7 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/matrix/basic.lean | bf77dbefbf6c37248f757db610df2a2eb40dd343 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,203 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.linear_map
import algebra.big_operator... |
3a697dc228f6ced55761e42a9566bfbee53de67b | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/concrete_category/unbundled_hom.lean | d43c1f72eb52dbd8fe9904490421d637199f30df | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 2,185 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.concrete_category.bundled_hom
/-!
# Category instances for structures that use unbundled homs
This file provides basic infrastructure to de... |
d0790fdd30933a6f8e8a7c4c2c6ba443fcb2305c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/inj_surj.lean | 8f8f9454388d004bd8cd8cd2e4c35359e7523a9f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 25,481 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.defs
import logic.function.basic
import data.int.cast.basic
/-!
# Lifting algebraic data classes along injective/surjective maps
> THIS FILE IS... |
8bfe34be1898130143734a91725b043243d0530e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/analysis/special_functions/trigonometric.lean | 4a2ed5672ba052db4918bfaf9d5cce9c5419b6c5 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 71,890 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.exp_log
/-!
# Trigonometric functions
## Main definitions
This file contains the foll... |
cf36fc992a588a597e67d68d7146d2525ba37451 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/normed_space/lp_space.lean | 745d26bd3b3d9192f1d2f8682450e2f785a50b3c | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 34,410 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed.group.pointwise
import analysis.mean_inequalities
import analysis.mean_inequalities_pow
import topology.algebra.ordered.liminf_limsup
/-!
# ... |
ca0ef553f9b6caa7315a3ef11282251483a6aa7b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/linear.lean | 639762539a871a66bfd7a5abba0c63f53d728a7e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,541 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.linear.linear_functor
import category_theory.monoidal.preadditive
/-!
# Linear monoidal categories
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.... |
0ae204d42bf00cb9f052f5cc9e80243659b08384 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/field_theory/perfect_closure.lean | f68954563b713f3ce0061128b30ffabf2290503e | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 17,382 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.char_p.basic
import data.equiv.ring
import algebra.group_with_zero.power
import algebra.iterate_hom
/-!
# The perfect closure of a field
-/
un... |
41f20f7762e361ab7ee1ce5788493f91fa53d4fd | a537b538f2bea3181e24409d8a52590603d1ddd9 | /src/tidy/tidy.lean | d50e619491e70abbb32fbc9bc5ec11914feb8d2d | [] | no_license | rwbarton/lean-tidy | 6134813ded72b275d19d4d32514dba80c21708e3 | fe1125d32adb60decda7a77d0f679614ba9f6fbb | refs/heads/master | 1,585,549,718,705 | 1,538,120,619,000 | 1,538,120,624,000 | 150,864,330 | 0 | 0 | null | 1,538,225,790,000 | 1,538,225,790,000 | null | UTF-8 | Lean | false | false | 1,563 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import tactic.basic
import tactic.tidy
import .backwards_reasoning
import .forwards_reasoning
import .rewrite_search
import .rewrite_search.tracer
import .luxembo... |
d1877f29e41dad2a70e07719b63d8ab5c7c86dab | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/field_theory/adjoin.lean | ad8a13483697ec66966b509516e49d163184d168 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 36,806 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.intermediate_field
import field_theory.separable
import ring_theory.tensor_product
/-!
# Adjoining Elements to Fie... |
03e63a121303254ce65f38a86e466b79d542bf0e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_geometry/stalks.lean | a702694af219680c5cbe15000080823c7cb56ab1 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 8,610 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebraic_geometry.presheafed_space
import category_theory.limits.final
import topology.sheaves.stalks
/-!
# Stalks for presheaved spaces
This file lifts con... |
e7e9c112beec9de233b5680e73472d373a875e91 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/order/archimedean.lean | 5511b5fb84162fc4ed4a718175fd50b31fbb8a00 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 866 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import topology.algebra.order.basic
import algebra.order.archimedean
/-!
# Rational numbers are dense in a linear ordered archimedean field
In this file we ... |
c5037873bd86fcf1c3c15771f2558ec52aec62e9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Quotation/Util.lean | 436955003b049fb90197771c87ec31a5c5f6abe4 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,901 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Elab.Term
namespace Lean.Elab.Term.Quotation
open Lean.Syntax
register_builtin_option hygiene : Bool := {
defValue := true
descr := "Annota... |
dbcdab278c2efb14a39e35d40b8b70c787733358 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/order/filter/at_top_bot.lean | ee578bf54b51388d248c8420ea0b4b19dbb02d65 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,960 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov, Patrick Massot
-/
import order.filter.bases
import data.finset.preimage
/-!
# `at_top` and `at_bot` filters on preorded sets, monoids a... |
36fb5c926b46d7f26b21a6278ee012e7c4a0d406 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/char_zero/lemmas.lean | 37329fd11dfbd8798533eda29703849f8bfde94d | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,948 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.cast.field
import algebra.group_power.lemmas
/-!
# Characteristic zero (additional theorems)
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any chang... |
24566b643dfef7647d312e6ef3a55885bfeaf9ad | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/run/aexp.lean | e8d8362ed8933bfe1906726f0e4ae84eb29f52e9 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,711 | lean | namespace imp
open tactic
@[reducible]
def uname := string
inductive aexp
| val : nat → aexp
| var : uname → aexp
| plus : aexp → aexp → aexp
| times : aexp → aexp → aexp
instance : decidable_eq aexp :=
by mk_dec_eq_instance
@[reducible]
def value := nat
def state := uname → value
open aexp
def aval : aexp ... |
d54913e7780a761ac2d04302a5a1fce3cc9d289d | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/basic.lean | 46ff239612c3b900d4a843814c06d9a8849b5d72 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 572 | lean | import
tactic.alias
tactic.cache
tactic.clear
tactic.converter.interactive
tactic.core
tactic.ext
tactic.elide
tactic.explode
tactic.find
tactic.generalize_proofs
tactic.interactive
tactic.suggest
tactic.lift
tactic.localized
tactic.mk_iff_of_inductive_prop
tactic.push_neg
tactic.rcase... |
37dae5467a3fe248e3e198ea4c869ae3cbcc073c | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/tc_inout1.lean | f4073cb476afc0258ea09b25355f784ea2e00362 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 2,127 | lean | universe variables u v
/-
Type class parameter can be annotated with out_param.
Given (C a_1 ... a_n), we replace a_i with a temporary metavariable ?m_i IF
1- a_i is an out_param and it contains metavariables.
3- a_i depends on a_j for j < i, and a_j was replaced with a temporary metavariable ?m_j.
This case is ne... |
890a68993b4cf18c3454e8dba8d33fcdeeda5be8 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/char_poly.lean | 357a0d8551d1571a341cd116d488b665589e7edf | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 3,771 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.apply_fun
import ring_theory.matrix_algebra
import ring_theory.polynomial_algebra
import linear_algebra.nonsingular_inverse
import tactic.squeeze
/-!
#... |
f216a2c57e60db1c095e17a2f14901b7fd04bc32 | 0003047346476c031128723dfd16fe273c6bc605 | /src/linear_algebra/finsupp.lean | ed4ac100349e917abc477cf65ce2cc156034f65c | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,116 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finit support `α →₀ β` and multivariate polynomials.
-/
import data.finsupp data.multivariate_polynomial
import linear_algebra.dimensi... |
3a911251b86121b7b2f04a827aac4113f07af9f0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/preadditive/of_biproducts.lean | d1f0cc0508307748204b01dc73d92c4000951976 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,745 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.biproducts
import group_theory.eckmann_hilton
/-!
# Constructing a semiadditive structure from binary biproducts
We show that any... |
ce76d35fa6130857e04666e19d951a288a7a7f92 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Meta/InferType.lean | 60e352346eada14f3dc966f2058b3b325083a399 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,201 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.LBool
import Lean.Meta.Basic
namespace Lean
/-
Auxiliary function for instantiating the loose bound variables in `e` with `args[start:sto... |
2ed51166f3007616f4890fd18f29c01c1585f693 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/num_bug2.lean | b59f2157f8321013a20a427c0b9d22170ce1d9f9 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 365 | lean | import algebra.ring data.num
open algebra
variable A : Type
variable s : ring A
variable H0 : 0 = 0 -- since algebra defines notation '0' it should have precedence over num
variable H1 : 1 = 1 -- since algebra defines notation '1' it should have precedence over num
example : has_zero.zero A = has_zero.zero A :=
H0
e... |
fc9855bd47c55f24517e8be952a9d7a09092e17c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/witt_vector/frobenius.lean | 08f61916e27e038ce4cd34c9ba2b246c2c5010af | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 14,133 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.multiplicity
import data.zmod.algebra
import ring_theory.witt_vector.basic
import ring_theory.witt_vector.is_poly
import field_theory.perfect_closure... |
46bb236420fe7fee20420789a4e2c2d810861ed7 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Set.lean | 5328aae6438559b6d47bd332a999aa477c5b0039 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 3,562 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.SetNotation
/-!
# Sets
This file sets up the theory of sets whose elements have a given type.
## Main definitions
Given a type `X` and a ... |
20b6f07d738720875313316eaf16fab529686402 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/function/conditional_expectation.lean | 5337de34313397e82218c6e70ce4dbb639fee4ed | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,340 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.l2_space
import measure_theory.function.ae_eq_of_integral
/-! # Conditional expectation
We build the conditional expectation with respec... |
e4b850272a0f36e8ee0bb7c97f020c0d20445d1f | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /library/init/algebra/order.lean | c9d4f013f08555eb6607ebf2cafc3f254e1364f2 | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,530 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic
/- Make sure instances defined in this file have lower priority than the ones
defined for concrete structures -/
set_option def... |
d67b73bfe0eeb7b27698db4b69af943138ef2f32 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /3-1.lean | 89c1bc640e1b7dd8b99e09601a93b31e04e74bcd | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,231 | lean | namespace hidden
constant and: Prop -> Prop -> Prop
constant or: Prop -> Prop -> Prop
constant not: Prop -> Prop
constant implies: Prop -> Prop -> Prop
constant Proof: Prop -> Type
variables p q r: Prop
constant and_comm: ∀ p q: Prop,
Proof (implies (and p q) (and q p))
#check and_comm p q
consta... |
18d21a27fc4b28b4dcc4cb662f8a572e5d955300 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/affine_space/combination.lean | b2d0f09b0cecb2efd2bec3972bbc503920e2b43a | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,241 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.invertible
import Mathlib.data.indicator_function
import Mathlib.linear_algebra.affine_... |
55d4fc8214f92447447c7e886901b544ea2782f1 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/nat_bug7.lean | 0090342b1e1086a98d657b3c14edffdfac820761 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 419 | lean | namespace experiment
inductive nat : Type
| zero : nat
| succ : nat → nat
namespace nat
definition add (x y : nat) : nat := nat.rec x (λn r, succ r) y
infixl `+` := add
axiom add_right_comm (n m k : nat) : n + m + k = n + k + m
open eq
#print "==========================="
theorem bug (a b c d : nat) : a + b + c + d =... |
0c1d45b4bc9c89d2cb11baebb5e2a896904456d2 | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/products/associator.lean | d3c609e63f482e26787a0a57a312440220a62152 | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,568 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.products
import category_theory.equivalence
open category_theory
namespace category_theory.prod
universes v₁ v₂ v₃ u₁ u₂... |
be07ecc5e75c672d2d7dcff45b5868c9a734aa9e | d840a2fd78ca0ee1e172fe2cf3751030229b56f3 | /lean_demo/src/solutions/inf_primes.lean | a8fbb22479b9d280c4d1b300bc6a01b71520296a | [] | no_license | stormymcstorm/VFRust_Presentation | 6e1d3964ce58d97320b36314ae83021bfb55f12d | 90142be25fa032464b3c4e68bc9f152213146254 | refs/heads/main | 1,673,178,849,384 | 1,605,289,504,000 | 1,605,289,504,000 | 312,644,751 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,182 | lean | import data.nat.prime
open nat
-- A theorem stating that there are an infinite number of primes, or
-- more precisely for any natural number N there exists a prime p ≥ N
theorem infinite_primes : ∀ N, ∃ p ≥ N, prime p := begin
assume N : ℕ, -- take any natural number N
let M := (factorial N) + 1,
let ... |
03f16ea6fa1a3a46ffe8d947e410795a68eaf1ff | 590f94277ab689acdc713c44e3bbca2e012fc074 | /Sequent Calculus (Lean)/src/axiomsSC.lean | bfd03bfa9e4776cce2e6cd8276c9b53e8959404b | [] | no_license | Bpalkmim/iALC | bd3f882ad942c876d65c2d33cb50a36b2f8e5d16 | 9c2982ae916d01d9ebab9d58e0842292ed974876 | refs/heads/master | 1,689,527,062,560 | 1,631,502,537,000 | 1,631,502,537,000 | 108,029,498 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 441 | lean | -- Axiomas de SCiALC.
-- Autor: Bernardo Alkmim
-- bpalkmim@gmail.com
import .basics
namespace axiomsSCiALC
open iALCbasics
-- Identidade
-- Δ, δ ⇒ δ
constant axiom_id (Δ : list Formula) (δ : Formula) :
Proof (Sequent (δ :: Δ) δ)
-- Ex falso quodlibet
-- Δ, x:⊥ ⇒ δ
constant axiom_efq (Δ : list Formula) (δ : Formu... |
6049da9ac45ea7c6e25381b026c6674bac2fef47 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/set_theory/ordinal/arithmetic.lean | 4a49974afe06750ed93143ba23b0023fd309acaa | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 97,840 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn, Violeta Hernández Palacios
-/
import set_theory.ordinal.basic
import tactic.by_contra
/-!
# Ordinal arithmetic
Ordinals have an addition (correspond... |
ae9e4a2c7cc7a83db408fd71872608efaafe51be | 0179bcdbf094a112437450a02dc2bdc8b2f921d4 | /fabstract/Roux_C_and_vanDoorn_F_PTSs/fabstract.lean | 8cc3715d23194197d1ee21e4a367c49daf4694cc | [
"CC-BY-4.0"
] | permissive | haselwarter/formalabstracts | cf0c129fc086526cef1bd65d95c6f95a9a7ec5c8 | eab6d94850308df9f09d23f3a9a2f7b5ac5c6c7a | refs/heads/master | 1,609,515,992,248 | 1,500,418,815,000 | 1,500,418,815,000 | 97,696,544 | 0 | 0 | null | 1,500,455,350,000 | 1,500,455,350,000 | null | UTF-8 | Lean | false | false | 4,290 | lean | import meta_data
.pure_type_systems
namespace Roux_C_and_vanDoorn_F_PTSs
open pure_type_system sum
-- noncomputable theory
/- We investigate combinations and extensions of Pure Type Systems
and their normalization properties. -/
variables ⦃P Q : pure_type_system⦄
/- We define a morphism between PTSs -/
d... |
b18346fcd03589fda0857dd2512dcb5abe27e402 | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/analytic/linear.lean | 1ea0aca12bdae705ccaa9ff850eccfe4ee7a536b | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 4,271 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import analysis.analytic.basic
/-!
# Linear functions are analytic
In this file we prove that a `continuous_linear_map` defines an analytic function with
the... |
e8f0becda3dde2dc9e6bb3a4de5b90c12a80b7b7 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/category/lift.lean | f9a16c99d7f500155de069c53029a36874518c76 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 4,497 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
Classy functions for lifting monadic actions of different shapes.
This theory is roughly modeled after the Haskell 'layers' package https://hackage.ha... |
2d28d13d6b3cbaca683787abe84810fa239790b5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/qpf/univariate/basic.lean | 0438f46721e473215d131584e06eec7fb2c10760 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,778 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pfunctor.univariate.default
import Mathlib.PostPort
universes u l u_1
namespace Mathli... |
d8bbb2cb1132a3a316125d4446ed10f868d29420 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/prime_spectrum/noetherian.lean | 6606e553a5a5336744dcd820bf0a6b29f6a92224 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,368 | lean | /-
Copyright (c) 2020 Filippo A. E. Nuccio. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Filippo A. E. Nuccio, Andrew Yang
-/
import algebraic_geometry.prime_spectrum.basic
import topology.noetherian_space
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes ... |
6967552ee48a0f725300e65f4d3a9b91874be940 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/asymptotics/asymptotics.lean | 0431daf2ce33266422f461214c0078a148b30c56 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 59,821 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.local_homeomorph
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "f is bi... |
71706e431aa4fde7889ad0f5d02248108d3166d5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/matrix/pequiv.lean | 1d3ae2fa76d4cbb5a5cc833f698ac49c446e402e | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 5,695 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.matrix.basic
import data.pequiv
/-
# partial equivalences for matrices
Using partial equivalences to represent matrices.
This file introduces the function `p... |
d06682615ecc31275f1e2c7c592bdbc06072aba4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/extension.lean | 9afe1bf697dffacdad1642d67a4a5a509c38575c | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,889 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import data.set.lattice
import order.zorn
import tactic.by_contra
/-!
# Extend a partial order to a linear order
This file constructs a linear order which is an extensi... |
cbd2c21aebe2678bc218b8ffb335891dd0cb856f | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/basic.lean | 09d430367ecac8e0a012673b005eecce67b8d91c | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 444 | lean | import
tactic.alias
tactic.cache
tactic.converter.interactive
tactic.core
tactic.ext
tactic.generalize_proofs
tactic.interactive
tactic.suggest
tactic.lift
tactic.localized
tactic.mk_iff_of_inductive_prop
tactic.push_neg
tactic.rcases
tactic.replacer
tactic.restate_axiom
tactic.rewrite
... |
0704468fdce765d6252b2365b6f38983f96863f1 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/1315b.lean | 52f8988eb352fe41c291454a4028d68fa44b4a69 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,243 | lean | open nat
def k : ℕ := 0
def fails : Π (n : ℕ) (m : ℕ), ℕ
| 0 m := 0
| (succ n) m :=
match k with
| 0 := 0
| (succ i) :=
let val := m+1 in
match fails n val with
| 0 := 0
| (succ l) := 0
end
end
def test (k : ℕ) : Π (n : ℕ) (m : ℕ), ℕ
| 0 m := 0
| (succ n) m :=
match k with
| 0 := 1
... |
8d28ceb3549005e9725fbbfaea5720d42a3ab68e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/adic_completion_auto.lean | c16cee47de4c460ccc313e7a9c957fba878067b8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,110 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.smodeq
import Mathlib.ring_theory.ideal.operations
import Mathlib.PostPort
universes ... |
2a5c1eff097b5b64e81dd9bb4b9d3c9f68b2d73b | e8d6a03af236c510516281c3b076aa984c212a1f | /lean4/ModelCount/ModelCount.lean | 228af4d9284320013ad721b5f49c62e57142955b | [
"MIT"
] | permissive | minsungc/model-counting | 9918a1afb2ef4cc91e6be906956b4ae2b82d10be | 02f650741bddb6a94a0729889dfeb8e9b0e8521a | refs/heads/main | 1,686,421,950,907 | 1,624,283,093,000 | 1,624,283,093,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 497 | lean | import ModelCount.Parse
def defaultFile := "/home/avigad/projects/model-counting/benchmarks/parity/parity-008.iteg"
def main (args : List String) : IO Unit := do
let p ← timeit "Time spent parsing:" (readIteg $ args.getD 0 defaultFile)
match p with
| (numInputs, output, numIteElts, I) => do
let O ← tim... |
e8b2c4191a87667165aaf67419d4be221144f51d | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/tactic/linarith/preprocessing.lean | ba05c79a21743fa04f0fddd6ecd2f4731a2ef790 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 11,013 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
import tactic.zify
import tactic.cancel_denoms
/-!
# Linarith preprocessing
This file contains methods used to preprocess inputs... |
1987edfecc3b383e017cbb7c4e9563ab551a257c | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Elab/Term.lean | 624ae3ee9811870415335189b91428e71118b99e | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 69,535 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.ResolveName
import Lean.Util.Sorry
import Lean.Util.ReplaceExpr
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.... |
57dc9335219038f076d6db610050ca4b857b91ed | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Json/Parser.lean | aa4bbc12697442e6e4e69e72f63375d97a1db24a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 5,439 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.Json.Basic
import Lean.Data.Parsec
namespace Lean.Json.Parser
open Lean.Parsec
@[inline]
def hexChar : Parsec Nat := do
let c ← an... |
4e1d913b6d31e7b9b949949a171410d8d7f8f979 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/classical.lean | fdecb442068824069b50a6a10ba20ed7b2187ae8 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 6,563 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
prelude
import init.data.subtype.basic init.funext
namespace classical
universes u v
/- the axiom -/
axiom choice {α : Sort... |
f00c6959d1b099d17f15a4855c4a1d9d9d29154c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_topology/alternating_face_map_complex.lean | 350150d18a9c0fd1c8865c96a58c14e36715c641 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 8,707 | lean | /-
Copyright (c) 2021 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou, Adam Topaz, Johan Commelin
-/
import algebra.homology.additive
import algebraic_topology.Moore_complex
import algebra.big_operators.fin
/-!
# The alternating face map complex ... |
7a231bafcce7536bbfbc25df74282ead962f1b18 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/cover_preserving.lean | fbfe8d21710ba631dd16957e0bd83fa130dc3238 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 9,622 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.functor.flat
import category_theory.sites.sheaf
import tactic.apply_fun
/-!
# Cover-preserving functors between sites.
> THIS FILE IS SYNCHRONIZED ... |
718dbc5451b4cdf15db2672a3637223178ef03e0 | ce4db867008cc96ee6ea6a34d39c2fa7c6ccb536 | /src/compute.lean | 110ec041e6c008fa336ff764cf7d4ca6f3d4df11 | [] | no_license | PatrickMassot/lean-bavard | ab0ceedd6bab43dc0444903a80b911c5fbfb23c3 | 92a1a8c7ff322e4f575ec709b8c5348990d64f18 | refs/heads/master | 1,679,565,084,665 | 1,616,158,570,000 | 1,616,158,570,000 | 348,144,867 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 470 | lean | import tactic.ring tactic.abel
namespace tactic.interactive
setup_tactic_parser
meta def compute_at_hyp' (h : name) : tactic unit :=
let lo := loc.ns [h] in
do { ring none tactic.ring.normalize_mode.horner lo <|>
norm_num [] lo <|>
abel tactic.abel.normalize_mode.term lo } ; try (`[dsimp only])
meta def compute_at_... |
322db414b2ccddb529efb4ef461742f96934f9c0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/format_to_buffer.lean | 7d7e7f9261ed703c90c6b9e8ea5e549dcd13fdea | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 200 | lean | import system.io
import data.buffer
meta def main : tactic unit := do
opts ← tactic.get_options,
let buf := format.to_buffer (format.of_string "foobar") opts,
tactic.trace (repr buf)
run_cmd main
|
0ab8ecca492fab856eeed5097919529e20173a3a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monad/monadicity.lean | da0e21e0df252f71508ec64175a1657a5b91c5b0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,434 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.reflexive
import Mathlib.category_theory.limits.preserves.limits
... |
252889a19ffdd88704abab23f4de7dd42f2acc3a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/polynomial/eval.lean | 0f23bfe1f377d148a13d09281e2c005cc67ad127 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 33,684 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.degree.definitions
import algebra.geom_sum
/-!
# Theory of univariate polynomials
The main defs h... |
42267ad417018c1d1d10682304a614aedeb33804 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/punit_instances.lean | 9d3edb7df24d815b14482e31540c2d87abcacbde | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 2,783 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.module.basic
/-!
# Instances on punit
This file collects facts about algebraic structures on the one-element type, e.g. that it is a
commutative ring.
-/
uni... |
f979a766ee7c95710c451ce51294279944e7f022 | 1df076a5dbc21ac313b84836755eb06a82b3d774 | /lean/Reihen/Reihen1.lean | 886919d03549bfbc6317bcf4991d892416bc071a | [] | no_license | SvenWille/ProvingStuff | 6781ac8793c01cd2b06e9512e34518a67dcf36f6 | ffc7914d23ffa7353406f7baf839d83383ad8787 | refs/heads/master | 1,611,383,739,892 | 1,509,005,088,000 | 1,509,005,088,000 | 93,031,144 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 712 | lean | open list
open nat
notation Σ a := sum (range a)
lemma helper1 {n : nat}: n + 1 = succ n := by simp
lemma helper {n : nat}: (Σ )
lemma Gauss {n : nat} : (Σ n) = n*(n + 1) / 2 :=
nat.rec_on n
(show (Σ 0) = 0 * (0 + 1) / 2 , from rfl)
(
assume hyp:(Σ n) = n*(n + 1) / 2,
show (Σ (succ n)) = ((succ n) * (suc... |
15a580303e0c31e042083eb643dbddd6699d3ea3 | c61b91f85121053c627318ad8fcde30dfb8637d2 | /Chapter3/3-1.lean | 11a7aed25dabd5db64f657b852f44db75d4f5640 | [] | no_license | robkorn/theorem-proving-in-lean-exercises | 9e2256360eaf6f8df6cdd8fd656e63dfb04c8cdb | 9c51da587105ee047a9db55d52709d881a39be7a | refs/heads/master | 1,585,403,341,988 | 1,540,142,619,000 | 1,540,142,619,000 | 148,431,678 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 613 | lean |
namespace hidden
constant and : Prop -> Prop -> Prop
constant or : Prop → Prop → Prop
constant not : Prop → Prop
constant implies : Prop -> Prop -> Prop
variables p q r : Prop
#check and p q
constant Proof : Prop -> Type
constant and_comm : Π p q : Prop,
Proof (imp... |
06ecca7ce91983dda1d57c84395620fb00bcc40e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/where1.lean | 1161415560047062ee07fa70d58e8fba8c96e221 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 800 | lean | partial def f (x : Nat) : Nat → Nat
| 0 => x + 1
| i+1 => h i + 2
where
g y := f x y
h y := g y + 1
def reverse (as : List α) : List α :=
loop as []
where
loop : List α → List α → List α
| [], acc => acc
| a::as, acc => loop as (a::acc)
theorem ex : reverse [1, 2, 3] = [3, 2, 1] :=
rfl
the... |
655413291d7a546c0e880d86f275e8e70d76971a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/multiset/lattice.lean | c7038cfd6f60c153be653e038ab5c9b992c557a7 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,859 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.finset_ops
import data.multiset.fold
/-!
# Lattice operations on multisets
-/
namespace multiset
variables {α : Type*}
/-! ### sup -/
section ... |
c5039737e5c38a95271341492ffe656c5e814c71 | 54deab7025df5d2df4573383df7e1e5497b7a2c2 | /data/hash_map.lean | b9339b64849b30da11a5888fc6004e996ccc32c9 | [
"Apache-2.0"
] | permissive | HGldJ1966/mathlib | f8daac93a5b4ae805cfb0ecebac21a9ce9469009 | c5c5b504b918a6c5e91e372ee29ed754b0513e85 | refs/heads/master | 1,611,340,395,683 | 1,503,040,489,000 | 1,503,040,489,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,844 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.set data.list.comb data.pnat data.array.lemmas
universes u v w
def bucket_array (α : Type u) (β : α → Type v) (n : ℕ+) :=... |
e4e4192fdd64d486a855bf64fbfee8c71634e468 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1247.lean | 680ddd71a250c49d2d7c7e25582037eca2ae9a02 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 204 | lean | inductive TestResult (p : Prop) where
| success : TestResult p
abbrev DecorationsOf (p : Prop) := Prop
def check (p' : DecorationsOf p) (x : TestResult p') : Unit :=
match x with
| .success => ()
|
0e8db615de55f9820ee504c46d7aae9efa4b9f67 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/subtype_inj.lean | 6971105d959fc43a19dca6611ae365eac9132240 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 169 | lean | theorem subtype_inj (A: Type) (p: A → Prop) (a b: A) (pa: p a) (pb: p b) : (⟨a, pa⟩: {a//p a}) = (⟨b, pb⟩: {b//p b}) → a = b := by
intro eq
injection eq
|
3770fd6bc667583b049e812b268b9e5ce44ed750 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/irreducibleIssue.lean | 1fc5f5b70417c12db938cf5feee7df51342767e5 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 519 | lean | class Trait (X : Type u) where
R : Type v
attribute [reducible] Trait.R
class SemiInner (X : Type u) (R : outParam <| Type v) where
semiInner : X → X → R
@[reducible] instance (X) (R : Type u) [SemiInner X R] : Trait X := ⟨R⟩
def norm {X} [Trait X] [inst : SemiInner X (Trait.R X)] (x : X) : Trait.R X := SemiInn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.